package com.fzshang.shopping.commen.service;

import com.fzshang.shopping.commen.bean.Classification;
import com.fzshang.shopping.commen.bean.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fzshang.shopping.commen.bean.layuiBean.ResultPage;
import com.fzshang.shopping.commen.bean.layuiBean.VoPage;
import com.fzshang.shopping.commen.bean.request.Sale;

import java.util.List;

/**
 * <p>
 * 后台用户 服务类
 * </p>
 *
 * @author 冯政尚
 * @since 2020-03-03
 */
public interface UserInfoService extends IService<UserInfo> {


    /**
     * @param account
     * @param passWord
     * @return user登陆
     */
    UserInfo UserLogin(String account, String passWord);
    /**
     * @param requestUserName
     * @return 判断用户名是否存在
     */
    UserInfo userNameIsNall(String requestUserName);
    /**
     * @param requestUserName
     * @param requestPassWord
     * @return 判断用户名对应的密码是否正确
     */
    UserInfo passWordIsNall(String requestUserName, String requestPassWord);

    /**
     * @param voPage
     * @return 商家管理
     */
    ResultPage<UserInfo> selectMyPage(VoPage voPage, UserInfo userInfo);

    /**
     * @param voPage
     * @return 商家审核
     */
    ResultPage<UserInfo> selectMyPage1(VoPage voPage, UserInfo userInfo);


    /**
     * @return  查询收入统计
     * @throws Exception
     */
    List<Sale> selectMoney() throws Exception;

    /**
     * @return 销售统计
     * @throws Exception
     */
    List<Sale> selectMoneySale() throws Exception;

}
